package com.caseeye.base

import scala.reflect.BeanProperty

import com.novus.casbah.mongodb.Imports._

class ConnectionFactory {
    
	@BeanProperty
    var databaseName : String = ""
    	
    @BeanProperty
    var mongoConnection : MongoConnection = null
    	
    def getDB:MongoDB = mongoConnection.getDB(databaseName)

}